package com.leemz.design.chapter3.none;

/**
 * 配置管理类的单例实现，不考虑多线程问题
 */
public class ConfigManager {
    private static ConfigManager configManager = null;
    private static ConfigModel configModel = null;

    private ConfigManager() {}

    public static ConfigManager getInstance() {
        if(configManager == null) {
            configManager = new ConfigManager();
            configModel = new ConfigModel();
        }
        return configManager;
    }

    public static ConfigModel getConfigModel() {
        return configModel;
    }
}
